<link rel="stylesheet" type="text/css"  href="<?php echo base_url();?>css/adminTable.css" />
<?php 

					// 通过使用CI内置的表格类显示信息
					//$query = $CI->db->query("SELECT * FROM user");
				 
					// 设置第一行每一列的名称, 也就是Column Name
					// $this->table->set_heading();

						// 设置IE表格的CSS格式
					$tmpl = array (
	                 	'table_open'          => '<table class="adminTable">',
	
	                    'heading_row_start'   => '<tr class="adminTh">',
	                    'heading_row_end'     => '</tr>',
	                    'heading_cell_start'  => '<th class="adminThtd">',
	                    'heading_cell_end'    => '</th>',
	
	                    'row_start'           => '<tr class="adminTREven">',
	                    'row_end'             => '</tr>',
	                    'cell_start'          => '<td class="adminTd">',
	                    'cell_end'            => '</td>',
	
	                    'row_alt_start'       => '<tr class="adminTROdd">',
	                    'row_alt_end'         => '</tr>',
	                    'cell_alt_start'      => '<td class="adminTd">',
	                    'cell_alt_end'        => '</td>',
	
	                    'table_close'         => '</table>'
	                    );
	
					$this->table->set_template($tmpl);
					$this->table->set_empty("&nbsp;");


					echo $this->table->generate($query);
					 

								 		
					// 如果要显示多个内容不同的表格, 需要清理类的缓冲
					$this->table->clear();
					
					
?>